﻿Imports DTO
Imports DAO
Public Class BookRoomBUS
    Dim bookroomDao As New BookRoomDAO()
    Public Sub InsertBookRoom(ByVal bookingId As Integer, ByVal roomId As Integer)
        bookroomDao.InsertBookRoom(bookingId, roomId)
    End Sub
    Public Function GetListBookRoomByBookingId(ByVal bookingId As Integer) As List(Of BookRoomDTO)
        Return bookroomDao.GetListBookRoomByBookingId(bookingId)
    End Function
    Public Sub Delete(ByVal bookingId As Integer)
        bookroomDao.Delete(bookingId)
    End Sub
    Public Function GetListBookRoomFromReceipt() As List(Of BookRoomDTO)
        Return bookroomDao.GetListBookRoomFromReceipt()
    End Function
    Public Function GetReceiptIDByRoomId(ByVal RoomId As Integer) As Integer
        Return bookroomDao.GetReceiptIDByRoomId(RoomId)
    End Function
End Class
